package com.tmpt.controller.servlet;

import com.dubbo.Bootstrap;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class DubboBootstrapServlet extends HttpServlet {

	@Override
	public void init(ServletConfig config) throws ServletException {
		super.init(config);
		//.out.println("----------DubboBootstrapServlet init start-------------------");
		new Thread(new Runnable() {
			@Override
			public void run() {
				Bootstrap.main(null);
			}
		}).start();
		//.out.println("----------DubboBootstrapServlet init end-------------------");
	}

}
